x86/emul: add likely()/unlikely() to test harness
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Dec 2016 15:23:37 +0000 (16:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Dec 2016 15:23:37 +0000 (16:23 +0100)
commitd57590205ebab425d670340c788a9ad4f4ad9914
treec0ac55f8a3f5aa0dc0d77cd35adab0ec26711879
parent24ccfc33272be300b306873b75352c0de3deca94
x86/emul: add likely()/unlikely() to test harness

Fix a build problem introduced in c/s 122dd9575c7 "x86emul:
in_longmode() should not ignore ->read_msr() errors" by providing an
implementation of likely()/unlikely().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Cherrypicked out of:

master commit: 3e84c8da7d2c5442a12789dae7163dca6c0e154f
master date: 2016-12-02 17:23:01 +0000
tools/tests/x86_emulator/x86_emulate.c